/* ================================== */
/* CSS for control sap.m/TileContent  */
/* Base theme                         */
/* ================================== */

.sapMTileCnt {
	display: inline-block;
	box-sizing: border-box;
	position: relative;
}

.sapMTileCnt.sapMFrameTypeAuto {
	height: 6.375rem;
	min-width: 10.875rem;
	max-width: 22.5rem;
}

/* TwoByOne size */
.sapMTileCnt.sapMFrameTypeTwoByOne {
	height: 6.375rem;
	width: 22.375rem;

	&.News {
		width: 22.5rem;
	}
}

/* OneByOne size */
.sapMTileCnt.sapMFrameTypeOneByOne {
	height: 6.375rem;
	width: 11rem;
}

/* Footer CSS */
.sapMTileCntFtrTxt {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-align: right;
	position: absolute;
	right: 0;
	left: 0;
	box-sizing: border-box;
	height: 1.1875rem;
	bottom: 0.625rem;
	margin-left: 0.9375rem;
	margin-right: 0.9375rem;
	line-height: 1.1875rem;
	font-family: @sapUiFontFamily;
	font-size: @sapMFontMediumSize;
	color: @sapUiTileTextColor;
}

html[dir=rtl] .sapMTileCntFtrTxt {
	text-align: left;
}

/* Content */
.sapMTileCntContent {
	overflow: visible;
	display: inline-block;
	width: 100%;
	box-sizing: border-box;
}

.sapMTileCntContent > .sapMTcInnerMarker {
	display: inline-block;
	vertical-align: bottom;
	line-height: normal;
}

.sapMTileCntContent {
	height: 3.875rem;
	margin-bottom: 0.25rem;
	margin-top: 0.25rem;
	padding-left: 0.9375rem;
	padding-right: 0.9375rem;
}

.sapMTileCnt + .sapMTileCnt {
	margin-left: 0.5rem;
}

.sapMTileCntContent > .sapMNwC {
	background-color: inherit;
}

.sapMTileCnt.News {
	height: 6.125rem;
	margin-top: 0.3125rem;
	background-color: @sapUiTileBackground;

	.sapMTileCntContent {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.sapMTileCntFtrTxt {
		margin-left: 1rem;
		margin-right: 1rem;
	}

	.sapMTileCntContent > .sapMTcInnerMarker {
		vertical-align: top;
	}	
}

/* BREAKPOINT FOR SMALL PHONES */
@media screen and (max-width: 374px) {
	.sapMTileCnt.sapMFrameTypeAuto {
		height: 5.5rem;
		min-width: 9.125rem;
		max-width: 19rem;
	}

	.sapMTileCnt.sapMFrameTypeTwoByOne {
		height: 5.5rem;
		width: 18.875rem;

		&.News {
			width: 19rem;
		}
	}

	.sapMTileCnt.sapMFrameTypeOneByOne {
		height: 5.5rem;
		width: 9.25rem;
	}

	.sapMTileCntFtrTxt {
		height: 1.063rem;
		line-height: 1.063rem;
		bottom: 0.4375rem;
		margin-left: 0.5625rem;
		margin-right: 0.5625rem;
		font-size: @sapMFontSmallSize;
	}

	.sapMTileCntContent {
		height: 3.563rem;
		line-height: 3.563rem;
		margin-bottom: 0.25rem;
		margin-top: 0.25rem;
		padding-left: 0.5625rem;
		padding-right: 0.5625rem;
	}

	.sapMTileCnt.News {
		height: 5.25rem;

		.sapMTileCntContent {
			padding-left: 0.625rem;
			padding-right: 0.625rem;
		}

		.sapMTileCntFtrTxt {
			margin-left: 0.625rem;
			margin-right: 0.625rem;
		}
	}
}
